package com.issc.zq;

/**
 * Created by Administrator on 2017/8/15.
 */
public class Lincoln extends Car{

    private int version ;                   //林肯的型号
    private int maxSpeed;


    public Lincoln(String realAppearance,String realSize,float realPrice,int realWheelNum,float realWeight,
                   String realKind,int realSpeeedMaxGrade,int realVersion,int realMaxSpeed){
        super(realAppearance,realSize,realPrice,realWheelNum,realWeight,realKind,realSpeeedMaxGrade);
        this.version = realVersion;
        this.maxSpeed = realMaxSpeed;
        showLincoln();
    }
    public void showLincoln(){
        System.out.println("我是林肯" + version + "代" );
        System.out.println("我的最高时速是：" + maxSpeed + "km/h" );
    }
    public void setVersion(int realVersion){
       version = realVersion;
    }
    public void setMaxSpeed(int realMaxSpeed){
        maxSpeed = realMaxSpeed;
    }
}
